import React, { useEffect } from "react";
import { AuthContext } from "../contexts/authContext";

const AddSong = () => {
    const {state, dispatch} = React.useContext(AuthContext)
    console.log(state);
    useEffect(() => {
        fetch('https://www.fastmock.site/mock/4f8c468ae7202f91850147535d932340/sbt/ali/login', {
            method: 'post',
            // 请求头
            headers: {
                Authorization:  `${state.token.t}`,
                "Content-Type": "application/json"
            },
            // 请求体
            body: JSON.stringify({
                username: 'zyy',
                password: '020101'
            })
        })
    }, [])
    return (
        <>
        </>
    )
}

export default AddSong